#!/bin/bash

for i in $(seq 1 6); do
    a=$(cut -d" " -f2 < info$i)
    while read -r line; do
	if [[ "x${line#play}" != "x$line" ]]; then
	    b=$(echo "$line" | cut -d" " -f2)
	    echo -n "playTime: "
	    echo "scale=1; ( $b / 3 $a ) / 1" | bc
	else
	    echo "$line"
	fi
    done < msg$i
done
